package model;

public class TestMain {
    public static void main(String[] args) {
        // 创建教师对象（补充学院参数，修正构造方法参数数量）
        Teacher teacher1 = new Teacher("T001", "张老师", "男", "计算机学院", "");
        Teacher teacher2 = new Teacher("T002", "李老师", "女", "信息学院", "");

        // 创建课程对象（补充课程介绍参数，修正构造方法参数数量）
        Course course1 = new Course("C001", "Java 编程", "教学楼 A101", "周一 8:00-10:00", "T001", "介绍Java基础语法与面向对象编程");
        Course course2 = new Course("C002", "数据结构", "教学楼 B202", "周三 14:00-16:00", "T002", "讲解常用数据结构与算法");

        // 教师开课
        teacher1.openCourse(course1);
        teacher2.openCourse(course2);

        // 创建学生对象（补充学院参数，修正构造方法参数数量）
        Student student1 = new Student("S001", "小明", "男", "计算机学院");
        Student student2 = new Student("S002", "小红", "女", "信息学院");

        // 学生选课
        student1.selectCourse(course1);
        student1.selectCourse(course2);
        student2.selectCourse(course1);

        // 学生退课（添加退课方法实现）
        student1.dropCourse(course2);

        // 打印学生课表
        student1.printCourseSchedule();
        student2.printCourseSchedule();
    }
}